import { useState, useEffect } from 'react'

export const useAuth = () => {
  // ajax请求登陆接口。获取token
  const [isLogin, setIsLogin] = useState<boolean>(true)

  useEffect(() => {
    setIsLogin(true)
  }, [])

  useEffect(() => {
    console.log('isLogin:-------------->', isLogin)
  }, [isLogin])

  return { isLogin }
}

export default useAuth;
